package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

/**
 * @author stone
 * @date 2022/06/24 15:15
 */
@RestController
public class HelloController {

    @Autowired
    @Qualifier("dataSource1")
    DataSource dataSource1;
    @Autowired
    @Qualifier("dataSource2")
    DataSource dataSource2;
    @Autowired
    @Qualifier("dataSource3")
    DataSource dataSource3;
    @Autowired
    @Qualifier("dataSource4")
    DataSource dataSource4;

    @RequestMapping("hello")
    public BaseRespVo hello() {
        return BaseRespVo.ok();
    }
}
